package com.mpgame.database.redis.model;

import com.mpgame.database.redis.model.enums.CommandType;

import lombok.Data;

@Data
public class RedisCommand {
    private CommandType type;
    private String key;
    private String value;
    
    public RedisCommand(CommandType type, String key) {
        this.type = type;
        this.key = key;
    }
    
    public RedisCommand(CommandType type, String key, String value) {
        this.type = type;
        this.key = key;
        this.value = value;
    }
}
